Custom arrays for dispatch

Implementing custom arrays isn’t as bad as one might think. You’ll probably be interested in

and

https://docs.julialang.org/en/v1/manual/interfaces/#man-interface-array