Return slices from get_attribute_parts.
Merge pull request #2826 from Ms2ger/get_attribute_parts-slices

Return slices from get_attribute_parts; r=Manishearth