Fixed tests
ADded array cast feature
Fixed up tests