Fix Rename bug due on entity/time clashes

My bad. :(
I think this still misses a case where you have same entity id across two different days. The logic as I see it is a bit inverted from this:
 - emit _every_ record, _except_ those where the previous entity, attribute, date and time are identical (implies priority ordering in effect).