Support for as_document with has_many relationships

I have edided this version of mongoid to add the method "as_document" to support has_many relationships

Without this method the error is returned: 

"undefined method as_document for array"

When this is called: 

@parent.as_document

When @parent has_many @children