[bugfix] fix query rewriting issue using new range index: reverse axis expressions cannot be optimised.
[ignore] add some argument checks for optimised functions range:field and friends.
Merge pull request #339 from wolfgangmm/develop

Fix query rewriting issue