CallableBuilder #1508: use applied type and type erasure info for static method/value references

Since the types are applied and we lost the erasure info from the expression since it's Callable
Test for #1508: backend error composing functions with generic arguments