Add `array_attribute` method that defines helper methods for converting array attributes to or from strings.