refactor operator module to remove compile-time warnings
Explicitly initialize pointers to NULL, refrain from using
pythonic constructs, e.g. a or b
, with cython extension types;
this causes cython to produce (correct) code where pointers are
not cast to the correct type.