Performance improvements.

I've made some improvements around generating JSON from the representation, this at least halved the time taken to run the tests compared to before.

Also I tweaked the build file slightly as the example project was pulling in the dependencies unnecessarily and I've pushed the scalacheck version up to 1.10.0.