Add missing NULL checks for cont gc funcs.
Add some more functions to the public API.