Add 'CMS.Models.get_instances' for polymorphic lists

* also make CMS.Models.get_instance a bit more robust