Remove unneeded helpers.c/.h and remove all references to it.
Add generic array handling functions.