fixed setting the instance type on assignment when calling a method and the method returns a known type.