Use a representation factory.
Test the smoothness of smooth segments.
A missing if statement was throwing off the Unicode test.