The bug was that the rebinding by name did not happen because the name was looked up in the wrong layout. A testcase has been added to test proper PCell rebinding in case of technology switches.