Fixes to partial update, tests in core, and Query.addEqualityFilter

Fixed partial updates which broke tests in core. Tracked down the test breakage to broken Query.addEqualityFilter and fixed.