Taking another swing at correctly optimizing fill_n.