fixed implementation of array_functions and added full test coverage

1. fixed arrayCopy which was not updating array in place
2. fixed splice to return spliced array and not spliced elements
3. fixed indexng error in subset