Confirmed that everything works fine for list query where entity joins child collections of itself
Added acceptance test showing problem where entity is not fetched as expected when joined to childcollection from alias of itself to itself
Implemented support for specifying primary alias for a query to select which alias should be returned when joining table to itself
cleanup and commented