assign event type to instances on construction

fixes an issue with in-memory collections that
didnt save the type when it was only specified
on the event prototype.