add patch classes in the other scala targets

- add json reads/writes
- add scalacheck generators
- add to reference API