Don't use array_fill for full array

When last array returned from array_chunk is full, array_fill is
called
with 0 as num argument, which causes fatal error. Additionally
changed
doc fill parameter, as arrays are accepted as well, and added
test.