Made lua clamp() compatible with all number types.