add a new ArrayRef class. This is intended to replace the idiom we