Finished, without help from the forum though a couple of uses of CrosswordSolver. Finished top half with near-empty bottom half, but got there eventually.
Liked 17, but although I know the answer word well I'd never heard of the (60's US apparently) meaning of the first word of the clue and it's not in Chambers, so I googled something like "ralph slang" and found it. All Chambers can offer is an imp in a printworks or some such. One of those solutions where you reverse engineer to parse it.
Foi: 12
Loi: 20
Cod: 16? 17? Lots of cleverness.
A satisfying puzzle!