biserver-8101: Fixed REST service so that it correctly serialized a prox...

...y object representing a Trigger