change param custom fn argument order, add query options
Merge pull request #1 from jrf0110/1-param

Call custom param fn with query options as well