fix chunk_size incrementing so that the simpler loop is performed in the event that chunk_size equals length(x)
fix chunk_size incrementing so that the simpler loop is performed in the event that chunk_size equals length(x)

gragusa/ForwardDiff.jl,gragusa/ForwardDiff.jl