Can't embed a resource with a custom _id (non ObjectId)

Closes #427.