Add support for global `operator~` (ie. `__invert__`). This would be moved to the relevant class as is done with other global operators.