Takes an input array in multiple dimensions and linearizes and removes NA. This replaces the outputs back into multiple dimensions after making the call.

linearized_work(input_list, run_func)