Changed order of context menu for logical switches and custom functions....

... Before this change the Delete option was first and it was too easy to inadvertently delete an item.

Real life example (happened to me several times, damn):
* right click on custom function label, the menu shows
* now still holding right mouse button down, move slightly to the right and down
* the Delete becomes active
* release right mouse button - BANG - the line is gone. And we have no UNDO.

So I have put the Delete line last.