print the object type in an effort to debug #307

Add some additional output to understand what type of object is being
passed to the json encoder when it's not a vm type.
Merge pull request #308 from hep-gc/issue307

print the object type in an effort to debug #307