Made it possible to have non-objects as dependencies.