fixed #1376; subdocuments now use own toJSON opts

subdocuments and populated paths were using the parent's toJSON options
instead of their own. This fixes that.