reduced trivial static warns

* removed unused imports
* re-factored a truncating integer division statement
* added a coercion to help the static checker (probably shouldn't have to do this - may be more appropriate as a dart bug)