Using arrayrefs seems to make smartmatch complain less