updating references when file has already loaded, fixed template and
assignment to this
when sorting using name instead of reference, attaching parent to global in/external dep in template
1.8.6