deal with some pathological object types more gracefully