Revert "Use just first element for ancestors in composites"

Reverts AppScale/appscale#1633