optimized performance of 'normalizeAngle' by avoiding loop (closes #488)