fix an edge case where fill is attempted on a null array
rename math function wrap -> fract, matches glsl function with same purpose