Use ShapeData instead of DataBuffer in graphics.js

The latter doesn't use auto-endianness, so all the tests are broken.
Merge pull request #1343 from tschneidereit/nat

Use ShapeData instead of DataBuffer in graphics.js