Changed readers to accessors and added some explicit type checking.
Started converting tests to use test-unit 2.x.