* module/srfi/srfi-1.scm (list-index): New function.
* lib.c (length): Return -1 for non-proper lists. (error): New function. (assert_defined): Use it. (check_formals, check_apply): New functions. * mes.c (car, cdr, set_cdr_x, set_env_x, eval_apply): Add error check. * srfi/srfi-1.mes (member): New function. * tests/srfi-1.tests ("member"): New test.
* module/mes/lalr.scm: Rename from module/mes/lalr.upstream.mes. * module/mes/lalr.mes: Update. * module/mes/match.scm: Rename from module/mes/match.upstream.mes. * module/mes/match.mes: Update. * module/mes/optargs.scm: Rename from module/mes/optargs.upstream.mes. * module/mes/optargs.mes: Update. * module/mes/quasisyntax.scm: Rename from module/mes/quasisyntax.upstream.mes. * module/mes/quasisyntax.mes: Update. * module/srfi/srfi-1.scm: Rename from module/srfi/srfi-1.upstream.mes. * module/srfi/srfi-1.mes: Update. * module/srfi/srfi-9.scm: Rename from module/srfi/srfi-9.upstream.mes. * module/srfi/srfi-9.mes: Update. * AUTHORS: Update.