Fix parsing of type without subtypes in ServiceType.valueOf(String).