Added a primitive gc_collect () to invokes the GC.