Query result lists should be writable.
Better error msg when someone tries to save a null entity
Better ref tests
Modernized the test suite.

Also added some Ref tests.
Also removed Monotonic.
Fixed broken ref tests
More cleanup of test cases, fixing session side-effects.