Refactoring the Arrayable typeclass.