Fills and returns new array with values val up to size
Values to fill with
Amount of pos to fill
Filled array
See Implementation
Fills and returns new array with values val up to size