Wire dependencies before context initialization

As discussed in #43 call `context#initialize` last when instantiating a context.
Tests all pass, so I think there should be no problems. However, I suppose this could be a breaking change for some people..?