objnamedtuple: Support iteration.
py: Make mp_obj_print() handle null object w/o segfault if debug build.

Happens regularly when used for debugging.
objtype: Implement ->getiter() method for instances.

Includes support for native bases.
objtype: Comments for duplicating code in runtime.c.