ordering for events, closures and members. Fixed a couple of associations bugs.