domain: Fix joining from a child to a parent that is a subclass.
features: Re-codgen.
features: Fix test that was using stale domain object.
Merge branch 'master' into stable

* master:
  features: Fix test that was using stale domain object.
  features: Re-codgen.
  domain: Fix joining from a child to a parent that is a subclass.