[mod] also test for empty case
[enh] setattr on funcdef node and name
[enh] new helper property .index
[mod] update CHANGELOG
[doc] document .index
[mod] update TODO