Add support of constructor parameters for EnumOf[T]