Fix and test z-interpolation on lines and points.