Fix issue with handling upper bounds of wildcard generics