Refactor TurnipPatternPolicy
Provide failing scenario for pattern starting from token

Describes #540
Fix turnip definitions starting from token

Fixes #540
Fix token-based transformation bug discovered after previous commit