Added unit test and documentation for function square_set_to_pg_json_array.