Fill an array with values, specifying keys