Minor change.
Polylines are different from Polygons WRT simplify().
Make Canvas add poly{line,gon}s lazily.
Minor change.