makes codegen a bit easier to read
makes codegen a bit easier to read

the casts are redundant here, because all branches of dispatch return
correctly typed picklers/unpicklers. nevertheless Scala isn't smart
enough to figure this out, so I'm opting for the simplest way to help it

scala/pickling,beni55/pickling