improve support for int arrays and float arrays

addresses #452