Use the ARQ Substitute operator before compiling queries

This makes parameterised queries using the inputBinding able to
have the input bindings compiled into the query, instead of
being post-processed later.
Merge pull request #232 from arekinath/feature/input-binding

Use the ARQ Substitute operator before compiling queries