Split array function implementation and prototype modification
- implementations of array functions are now in array-fun.js
- array.js now only imports these functions into the Array prototype
- simplified a precondition in array-fun
- added parameter checks for every function in array-fun
- httpmod now uses array-fun instead of own functions, because array-fun is already partially tested and therefore safer to use.