Improve array support for "data" attribute in renderTagAttributes()