cleanup around how we generate container types in scala

- add better error messages for json parse failures