Fixed #56: not allowing matrices with empty dimensions like `[[],[]]`