Small changes and tests for the newly introduced EnumType

Small changes and tests for the newly introduced EnumType. I will also adapt the TypeInfoParser, if #203 is merged.