Add unittest for issue 6893.
Allow narrowing conversions of enum -> integral (int, short, etc.).

It will just throw at runtime if the value of the enum is too large.
Add unittest for narrowing enum -> integral conversions.
Merge pull request #1504 from quickfur/bug6893

Issue 6893 - Write of enum member represented with ubyte or ulong