[Scaffolding] Fixed CRUD controller generation for MongoDB schemas with inline sub-document definitions (bad type-guessing).