ArrayBasedModel.add_reactions is tested and works

Wrote a unit test for this. There were pre-existing bugs in the code
prior to the switch to LinkedArray and SMatrix which were also fixed.