Unit test for circular reference in default profile property, plus related polishing

Issue: SPR-12078
BeanFactory supports bean creation arguments for by-type lookup as well

Issue: SPR-11235