fix for calling .array() on ranges in CTFE