fixing bug with array vs obj when gening etag