Merge pull request #1 from LearnBoost/master

Pull in latest changes
fix toObject error with subdocument custom transforms
Merge pull request #2447 from chmanie/toObject-success

toObject() with custom transform function and subdocuments