Enhance stencil oper definition

* Use same approach as with user-defined functions.
* Macro for type definition may be used if either function or stencil oper are
* used in several places in code (Because I suspect that locally defined
* structs have unique types even if definitions are identical).