Generify clamp in Utility.java

Requires being explicit (in terms of floats and doubles, and maybe long when it comes to using the short-form L), but this makes the clamp method much more flexible.