Allow `range` to work on older Julias
restrict/prolong: fix type declaration for non-BLAS types