[bindings] Handle type X = Y aliasing in type resolution