fixed transformer type recognition and added string to enum transformer