Implement correct selection drawing for CompoundPath.

Closes #402.