* fixed implementation of array_functions
* added full test coverage for array_functions
mergin array functions and tests