Split type decteion to better handle int vs double,
add error trapping for object based properties