Make sure to only ensure indexes while connected
fixed; Mixed can now default to empty arrays
add failing tests for Mixed types defaulting to 
fixed; keys by the name 'type' are now valid
add failing test for keys named 'type'
Now, null values retrieved from the database are hydrated as null val…
…ues in the document (before hydrated to undefined). With tests.
Merge remote branch 'LearnBoost/master'
Fixed GH-267. No longer sending embedded doc $push to mongodb twice i…
…f you save a new doc twice. Atomics and dirty attributes now properly cleared after each save.
Added failing test for GH-267
Added a human explanation to test for GH-298.
Fixed Issue 298 - 'id' over-riding should mute the default virtual 'i…
…d' schema addition.
add failing test for GH-298
fixed - RegExp query casting when querying against a type that is an …
…Array of Strings.
Getters/setters for nested virtuals now work.
fixed;  and Array cast to Mixed by default
add failing test for Array type defaults
fix failing regexp test on array types
Merge branch 'master' of github.com:LearnBoost/mongoose
add failing regexp query on array types
Added failing test
add aheckmann to credits
only doValidate when path exists in schema
add array cast test for default
allow default functions for Array types
add failing tests for Array types with default functions
reduce likelihood of validator fn name collision
fix function comparison in SchemaType#required
fix isRequired setting of SchemaType
add failing test for isRequired setting of path
add test for validation on previously existing null vals