Adding ClassRegistry and generic jsoning to pair with handy.jsonable