Add a rectangle collision test. Expand Collision.collideEdgeAndCircle().

TODO: Need to fix circle intersecting with segment endpoints.