Naively scatter RB_GC_GUARD to prevent GCC optimizing values off the stack. Sprinkle Check_Type before doing hash references to ensure they aren't nil (segfault).