Yep, I understand that improvement upgrades auto-queue with tech discovery.
Its just that for eg, when I cancel an upgrade to an existing basic factory, the Xeno factory improvement comes up on the colonys improvement list (not in the build queue). So I can then build a Xeno factory directly on a blank improvement tile without needing to build the basic factory first.
Additionally, the cost of upgrading an existing structure seems to the be same as that for building from scratch.
Either way, it seems to me that there is an bug here.