New math_clamp() variants

There are several cases that don't need an additional runtime check of the bounds. The default math_clamp() function will still use the safe variant as before.