Fix bug in CalcVectorProjectionLength plus tests.