Updates for new trail API.

Small updates to match big refactoring in diagrams-lib (see diagrams/diagrams-lib#87).