SerializerBase: add more tests for object stack, fix #232