Three getField/setField bug fixes for Dean's unit tests.