ArrUtil: added array compression and serialization functions, updated api