OAK-2118 Aggregation cursor introduces doubles in the result set



git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1626770 13f79535-47bb-0310-9956-ffa450edef68
OAK-2116 Explorer should display the template Id and use it in the reference tracking report
 - fixed missing license header 

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1626771 13f79535-47bb-0310-9956-ffa450edef68