Improved the error messages.
We do not want parsing an invalid dictionary to give errors about lists!