TYPOC-48: added generic invert option for the different context types