Add ability to specify filter priority in transformation.

I have a use-case where I dynamically build a transformation based on user input, but I need to ensure that certain filters apply in a specific order. This PR makes it possible to have certain filters apply early, and other late, while "neutral" filters apply in between. This change should be BC and transparent.