Preventing cloning from taking fields from prototype
Merge pull request #96 from czeslaaw/master

Fix for documents with prototype.