more informative error message for bad serialization
check that the unpacked test object is correct
test invalid Session pack and unpack
Merge pull request #4239 from minrk/better-errors-for-aaron

more informative error message for bad serialization