bugfix: if the return type is an enum, the enum is now returned correctly