Fixed enum_values and get_string implementations

Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>