Projecting Enum to Enum in another assembly throws an exception

Discussed in issue 582.