Fix incorrect return value of ElementList.__len__
Text descriptor

Too many type queries. Refactoring needed.
Fix outdated example of docstring
Eliminate type queries of Descriptor subtypes