Fixed logic of removing used voxels.

Also made sure that structured arrays work.