Pass more strictNullChecks by changing onFinished in ComponentType to non-optional
I believe this helps because the gymnastics with ComponentProps makes
onFinished doubly-optional, which then doesn't match the types of the
props of the dialog we are passing in to Modal.createDialog.
Reduces the number of strict errors by ~200 and does not introduce any
new ones.