core/list: add length as attribute