Properly extract the arguments of do_action_ref_array()

This function is passed an array, with each value representing one of
the arguments which will be passed to the hooked functions. So we need
to extract the array values as the arguments, instead of just the array
itself.