Squashed changes to UniqueValueCountAppender and added tests