Fixed ancestor lookup and added some guards around infinitely recursive serializations.
Fixed ancestor lookup and added some guards around infinitely recursive serializations.

bblack16/bblib-ruby,bblack16/bblib-ruby