Fixes for references to types nested in other classes, and event definitions using generic delegates.