fixes dynamic itemclass example usage of type()

As mentioned in #398, second parameter to `type()` should be a tuple.