Adding error reporting for unexpected keys/values.