added support for enums in Dispatch
Merge pull request #2492 from Blank101/dispatchenum

Added support for enums in Dispatch