angle and orientedAngle sometimes return NaN values

Apparently, it is possible that the dot product of two normalized vectors is not within [-1, 1], due to numerical inaccuracies. Thus, the result can lie outside of the domain of `acos`, resulting in NaN return values.