Adding support for SINGLE_ELEM_ARRAYS flag in the renderer and adding two new tests to test serializing single element arrays with and without the flag enabled