Added support for enums in Dispatch

Enums can be passed either by index or by ctor name. Only simple enums with no parameters are supported.