Correctly parse nth_ref $1..$9 magic gvars

These create a s(:nth_ref, '1..9') sexp in the parser.