Minor code beautification

Help dart2js to generate better code. We still have a problem with the
Point class whose x and y properties are not recognized as numbers.