add missing arrays and remove double nested arrays/hashes when calling to_hash
add spec for root element check and array in json response
elements aren't aware of their parent node, so instead, calls to to_hash need to provide whether the current element is the root node
Merge pull request #18 from kamui/json-hash-array

Problem with response.to_json