Fix return type of #getCurvatureAt() methods.

Closes #535 properly this time.