gh-2276 make sure _id isn't subdocument before overriding type