Cloning of types containing white space did not work, this commit fixes that bug.