Properly handle case where target of table rename is a namespace
Fixed create namespace problem when intermediate component is a table