Use a switch table for enum->string conversion, which avoids runtime memory allocation.
Merge pull request #1540 from AndrejMitrovic/ConvOptimize

Use a switch table for enum->string conversion, which avoids runtime memory allocation.