Add some assert on getAsNullable*()
Add some unit test for get*s and set arrays.