(though as anybody will tell you, apparently Onan was punished merely for spilling it in excitement, not literally for the sin of the handman).

As much as I admire the phrase "the sin of the handman" I have always thought that Onan did not "spill it in excitement", but spilt it deliberately in a refusal to perform levirate marriage. As I understood it, that was what got him in trouble.