Added GUI to edit trigger type (alias/trigger).
Fixed trigger loading due to casting problems.