Bits and pieces to facilitate accounting with Beancount.