Revert MathUtils to 2.1 behaviour. Update tests accordingly, and restore missing tests from 2.1 version Note: removed deprecation from methods that merely change behaviour in 3.0