Added applyClamp().

This should probably be the default, since you usually want to clamp to the
bounds of the range you're interpolating. But that ship has long since sailed,
so we'll just add a clamping version and call it good.
Make all transitions clamp their interped values.