Fixed a counting bug in arity_compressed store and fixed the unit tests in standard and arity_compressed stores to use the correct values.