Consider primary attribute with getBean(Class)

Update DefaultListableBeanFactory.getBean(Class beanClass) to
consider the 'primary' attribute of bean definitions. This makes
getBean() behave in the same way as autowiring.

Issue: