Fix Object Type Detection to Not Incorrectly Convert Booleans and 0 Integers to None

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.

Signed-off-by: George Sibble <gsibble@gmail.com>
Merge pull request #37 from sibblegp/master

Fix Object Type Detection