Merge pull request #1 from LearnBoost/master

Merging latest
Adding test for doc.toObject({minimize: true, getters: true }), for #1607
Working version of minimize in document.toObject, negative speed impact
Refactored minimize functionality for document.toObject, improves performance
Merge pull request #1744 from JedWatson/master

Solution for Issue #1607