Add hasBeanOfType and hasBeanWithAnnotation methods

Update ListableBeanFactory with additional hasBeanOfType and
hasBeanWithAnnotation methods.