Rasterizer tweaks; depth testing bug fix
Stats code from 'blog' branch