trim(pad=True, fill_value=xxx) will return a NumPy ndarray

 as stated in the documentation (fixes #540)