[MIN] minor rewritings
[ADD] RESTXQ: cast RESTXQ bindings to types of function arguments