Adds support for more than 20 nested entity aliases

Not quite as impressive of a commit as the title might imply :)