Add missing null check in istype.

Brings it in line with other impls.
Support iterating MVMContext.