SoftwareRender experiments

Block range fix
min/max z per block
minor optimizations from gist.