Allow initializer to work inside plugin managers

ping @arekkas @danizord

Initializer didn't work in the context of an object that was created through a plugin manager. This PR solves this. If you are ok, I'll tag directly after :).