added type checking to some list iterators; fix plugin type checker macro