Fixes getattr for ndarray