Fix decoding of dicts containing ndarrays.