Use ShapeData instead of DataBuffer in graphics.js

The latter doesn't use auto-endianness, so all the tests are broken.