Fix normalizeLength methods

These methods were inadvertently returning the reciprocal of the vector's
length instead of the actual length.
Merge branch 'fix_normalizelength'