bugfix in identical_readings; optimization in duplicate_reading