match: rename ?1-tail to ?rest.