Switch to making true recursive data structures
Add some partway finished tests for JsonRefErrors