fix serialize to Json/Bson for const struct classes
Merge pull request #306 from japplegame/bugfix

fix serialize to Json/Bson for const struct classes