LearnBoost/mongoose — pull request #662 by paulwe (2011-12-23 14:06:06+00:00)
Title: More reliably update schema.tree when merging subpaths or using schema.path() with 2 arguments

Because schema.tree was updated in schema.add(), paths added via schema.path() were unusable. Also, because of the way keys were checked against schema.tree, multiple calls to schema.add() modifying the same subtree were not correctly merged.