Enforce typing for some array helpers functions

All is in the title of the PR