Enforce typing for some array helpers functions + docblocks fixes