Fix content_tag_for with array :class option (squashed)

Squashed #9049