TST/BUG: raise AttributeError on is_scalar for null arrays