Forced nodes to return vector output

- fixes #304
Added test for scalar node output

- Based on the example in issue #304