Add support for reading into arrays