test if numbers, strings, or nils are objects