Check for ValueError on write to read-only Dats.

Recent versions of numpy throw a ValueError rather than a
RuntimeError when trying to write to a read-only array.
Merge pull request #133 from OP2/new-numpy-errors

Check for ValueError on write to read-only Dats.

Recent versions of numpy throw a ValueError rather than a
RuntimeError when trying to write to a read-only array.