Integrated the type-checking change proposed by njsmith.

ENH: this version of select() now accepts subtypes of bool/int in condlists.