fix issue #653
Merge pull request #654 from japplegame/fix#653

Enable BSON serialization of const objects with toBson() methods. Fixes #653.