Cleanup constants

* Rename constants to UPPER_CASE_WITH_UNDERSCORES to match the Dart style guide
* Deprecate sqrtOneHalf  as it is available in dart:math
* Fix some warnings