Fixes to the bugs which were introduced in a previous task:
 - accounts balancing works
 - a sequencing of record identifiers works
Merge pull request #125 from HappyMelly/191-fixes-for-account-balances

Fixes to the bugs which were introduced in a previous task