MathUtil.java: added clamp methods for long and float