Fixes #51 - Performance of arrays

Remove the O(n^2) reversal when decomposing arrays
* Make result of JsonWriter O(1) operation
* Don't unnecessarily access result of JsonWriter
  This makes addNode O(1), otherwise ListBuffer
  mutations become O(n)