Fixed issue with new array elements overwriting old elements. Fixes #62

This commit fixes an issue with the base formatter which caused new elements to overwrite other elements in the array.