Continue working on MongooseError.type -> MongooseError.kind, fix test/schema.validation.test.js

refs #1323
Merge pull request #2059 from nevill/develop

Fix test/schema.validation.test.js