Rename Compiler#add_error to #add_diagnostic; add #diagnostics, shim #errors.