Added a method to get the domain object from ae objects

Namespace, Class, Instance, Method objects in Automation model now
all have a method called domain which returns the domain object
I don't think there's any reason to have any other assertions aside from this one here on line 79.