Fills array with values val up to size if it's not 0
Array to fill
Values to fill with
Filled array
See Implementation
Fills array with values val up to size if it's not 0