Fixes #791: structural arithmatic for empty matrices