bail with a clear error message when a JSONDirectory can't be built.
make the build more reliable by tossing maven cache for the local jar
Support optional names in types.