fix type checks

This branch0 standardizes variable type checks to use isinstance() with or without multiple types. The rest of Stem already uses isinstance(), this just changes the last hold-outs.

Trac:
Username: robinson