Factor event signalling functions into a module
Signal events when adding types to avals and properties to objects

Issue #156