add support of mongoid collection serialization