'Return a dict that includes section\'s attributes.'

def to_dict(self, trans, link_details=False):

    section_dict = super(ToolSection, self).to_dict()
    section_elts = []
    kwargs = dict(trans=trans, link_details=link_details)
    for elt in self.elems.values():
        section_elts.append(elt.to_dict(**kwargs))
    section_dict['elems'] = section_elts
    return section_dict
