fixed dataset take indexing
now can also handle aligning dimarrays containing a scalar