add support of mongoid collection serialization
Merge pull request #293 from goshakkk/mongoid-support

add support of mongoid collection serialization