Implemented a beginning fix for object-id bug
Added references option to cast object ids
Auto convert references object-ids
Merge pull request #2 from modella/ObjectIdFix

Object id fix