HACK!: in determining the type of a set value