Swapping of inverts not mutually exclusive.

Works the same as Shaders and Textures - adds the option to the menu if
at least one of that type is selected.
Also cleaned up ugly IF statement for swapping inverts
Fix bug for invert+math nodes selected at once

also elaborate todo