Get rid of TSRMLS from kernel/array.c

Iteration 2 as mentioned in #822: removed `TSRMLS_DC` from the functions that do not need it (anymore) and updated dependencies.