pgrest_param* methods for state vars

Closes #14.