Core: simplify ZLimits

Why not just use +-infinity.

Previously Redmine2491

Edited by Joachim Wuttke