refactors computation of knownHints

full-fledged implementation crashes with an NPE in erasure, so I commented
out the offending part
Merge branch '2.10.x' of github.com:scala/pickling into 2.10.x