Moved surface z-level value into ModelData. Implemented precalculation of z-levels. Closes #347.