fix: case for parametrized bean with type bounds, added tests for such cases