#4289 Move isPowerOfTwo to THREE.Math and update all references