Remove unnecessary field from afArray
Use externalpointer instead integers to represent pointers