Fix bug that did not allow use of factory beans from parent contexts