rudimentary support for state arrays
test that state array read works