Hotfix service injection

Added functionality to aggregate bean factories only when necessary. Beans nested in the custom directory properly override beans nested in the model directory. And beans in the model directory are now injected with the overridden beans instead of only with beans from their respective bean factory in which they were discovered and declared.