TYPOC-48: added the invert method from the context extension to the context types