Fix issue with casts from long/ulong to enum.
Fix interaction between enum/long cast fix and nullable enum cast fix