Bugfix - need to copy ports so that new getInput/OutputDataSet calls work from template components