Refactor: Replace integral type with enum jiim_types
GetClassInfo succeeds when it returns non-zero, not TRUE
Don't compute strlen(nullptr)