Support for int arrays and some tests