Make ByDist use world transforms. Fix tests.

fixes azul3d/gfx#1