extracted service for array-utils. test written for the dissolve method.