Change the insert callback to make it more intuitive.

- If the function was called with an array, the callback will have an array (even if the array had one element).
- If it was called with an object, the callback will have an object.