Follow-up to #330: `get_attribute` should return numpy arrays (`py::array`, 1D) and numpy scalars (`py::array`, ndim==0) instead of lists.