allAliases computes the full set of aliases for a child resource
given a set of aliases applied to the child and parent resources. This
includes the child resource's own aliases, as well as aliases inherited from
the parent. If there are N child aliases, and M parent aliases, there will be
(M+1)(N+1)-1 total aliases, or, as calculated in the logic below,
N+(M(1+N)).
allAliases computes the full set of aliases for a child resource given a set of aliases applied to the child and parent resources. This includes the child resource's own aliases, as well as aliases inherited from the parent. If there are N child aliases, and M parent aliases, there will be (M+1)(N+1)-1 total aliases, or, as calculated in the logic below, N+(M(1+N)).