- Fixed a bug on rotateCurve that internally called interpolatXinteger function.
- Fixed a bug on interpolateXinteger that allowed NA values

Signed-off-by: Paulo Hack <ph_hack@hotmail.com>