Fix attribute conversion problems, mostly invalid casts to byte.
Added Cube shape.
Dilation and Erosion based on distance functions.
Fixed print in illegalrgument throw that failed.
Changed counts to long as there can be many voxels.