Adding argument checking to public functions in gstcmemallocator.c
Adding comments to public function in gstcmemallocator.c
More small refactorings at gstcmemallocator.c.