Closes #22, and possibly #28: handle args-out-of-range in autopair-pair-p

Also use the `scan-error` subtype in many `condition-case` clauses.