Using list variable to define input slot options

By this changes I added to Snap the possibility of using a Snap global variable as the source for the list of options of input slots for custom blocks.

The list is choosen by selecting "option list..." in the right-click menu of the "default value" box of the "Edit Input Name" dialog.

The behaviour of this change can be tested with the "input options by snap list test.xml" project.