MongooseError.type -> MongooseError.kind

closes #1323

see https://code.google.com/p/v8/issues/detail?id=2397