Added tests for MTI in RunPython.
Fixed 21893 -- ModelState didn't account for MTI parents inherited from abstract models.