BUG: set name attr in DatetimeIndex and PeriodIndex

Now index names are preserved through slicing