Added support for registering aggregate roots so that children can have access to their root's Ids before being inserted