Allows user lists dict to be any dict type

This fixes a failing test, due to the fact that the code was testing
that only the dict type was being used, instead of any instance of dict.
So the OrderedDict introduced in the previous commit was not considered
valid.
Removes more uses of type()