added np.ndarray in type checking for keys
fix bug dataset.py: keys "isintance...
seems to have removed the metadata-related bug