Fixed issue where optional outputs were not able to link properly (issue 161)