Bugfixes and simplified implementation of RationalDynamicArray.