Issue #280: add a few assert() calls to ensure objects are of the appropriate type.
Issue #280: add a few assert() calls to ensure objects are of the appropriate type.

Nzbuu/json-c,Nzbuu/json-c,Nzbuu/json-c,Nzbuu/json-c