Patched array.c for Ubuntu Touch