Move the compiler-only dict and error helpers out of the AST library
The AST library had code that only the compiler uses. The v0 PPX encoding of dict literals moves from Ast_dict to a new compiler module, Ast_dict0, so the AST library no longer needs Primitive_modules. Ast_mapper's extension_of_error and Ast_raw's uninterpreted error move to Builtin_attributes, next to error_of_extension, which decodes such errors.