Divide array a by array b.
If the result is a scalar and infinite, return fill.
If the result contain elements that are infinite, replace these elements with fill.