Check if GC is patched before calling methods.
Merge pull request #4 from plu/gc

Check if GC is patched before calling methods.