Change type check to allow iterables of dicts in addition to lists of dicts