fix for top-level multi-out nodes
added unit test for multi outs