Remove some array utility functions

They are almost not used in the library