Fix change detection logic in SchemaManager

bug originated in 574d262380 in pull request #95

The change flag of the dependents need to be propagated up the recursive calls.

The tests are now a little more expansive and cover the case of updates.