better error messages for hash shapes.
make sure those errors have pos-in-file info
Merge pull request #163 from timo/hash-shape-errors

better error messages for hash shapes.