This problem is known and logged as
51881: DLL Server built with RO runtime packages using enum type produces Stringlist does not allow duplicates ERROR
The fix will be included into the next beta version which we are going to publish next week. Your proposed fix is good btw.
Apologies for the inconvenience.