Fix bugs #1277 #1281 #1282 and count-based aggregates (story #2468)

fix #1277 Entity meta data does not contain label
fix #1281 Xref/Mref control uses attribute names instead of labels
fix #1282 Explorer filter modal shows attribute name if label is available