Add support for numpy arrays (and dicts) to approx.