Understanding Entropy Coding With Asymmetric Numeral Systems (ANS): a Statistician's Perspective