ptr<T>::alloc
ever so slightly more sanity for mkevent.pl
typedefs for event member types
reoganize closure structure to allow a few more correct cases to be used in tvars blocks