Modify GC handling.
 - Check RFile->fptr before fptr->path is referred to.
 - Protect match in mrb_str_scan.