Fix Object Type Detection

Prior to this patch, zero integers and False booleans were being converted to None since both evaluate the origin if statement (it not obj) to True.  This can screw up APIs expecting False values or an integer, not a null.

Signed-off-by: George Sibble <gsibble@gmail.com>