Added support for operator field option

Also modified some structured query interfaces and base classes to make it easier to add new options in the future.