core: Implement simpleArray utilities