[CDF-370] - Fixed bug introduced in b639889e3906513c4de69dde72896d605ade...

...0411 with the parameter get and set revision. This fix removed the ability to pass as query arguments static values. Introduced a check on buildQueryDefinition for cda and cpk.

Also, fixed bug where functions not being evaluated on cpk queries due to _isObject = true if the given object is a function.
Added unit tests for the fix
which one actually uses a parameter ?