fix bug reported in #228: related to ndarrays with qobj instances as values (without specifying dtype=object)