Another `obvious' fix is to have host_integerp return false when given NULL. Not sure if that would fix or hide other problems ;-)