Fail when an unpickle succeeds but has extra junk data at the end.

Also adds tests to ensure this is working.
5 jobs for dkasak/fix-unpickling-error-handling in 2 minutes and 22 seconds (queued for 11 seconds)