Handle type parameter in ProgressEvent constructor (#2379)