Check nodes for matrix output.

Fixes #267.
Check Node output when `size_out` is provided.