mem: Remove array_size dependency