Move assert(ev) to before we use ev in EV_CLOSURE_EVENT_FINALIZE case

Based on a patch from Harlan Stenn.
Fix 'make distcheck' by adding regress.gen.[ch] to DISTCLEANFILES

Patch from Harlan Stenn.