Fixed out of bounds exception when serializing typed json that happened when an empty array was serialized at a specific offset in the buffer. Closes #647
Changed unittest for typed json serializer to include out of bounds exception for empty arrays as mentioned in #647.
Added new jsonfile for unittests instead of changing old since it broke some other unittest.
Merge branch 'issue/647' into develop