extmod/moductypes: Use mp_obj_is_dict_or_ordereddict to simplify code.
extmod/moductypes: Use mp_obj_is_dict_or_ordereddict to simplify code.

Change-Id: Ie9fe802bd5018b3b17f83b1df960a0b5e5310fc3
Signed-off-by: Damien George <99e6b749acbfbe2a596df99e91d24d6e1fdbee00@micropython.org>

pfalcon/micropython,pfalcon/micropython,pfalcon/micropython,pfalcon/micropython,pfalcon/micropython