Fixed bug in broadcasting.
Merge pull request #37 from luca-heltai/shape-tests

Fixed bug in broadcasting.