added nullable type.
fixed some aborts in the unit tests (lesson: test failures can be obscured by threads aborting).