(Flash8) fix TEnumParameter (closes #2728)
(Flash8) avoid exception in Path.normalize due to EReg usage