Fixing warnings, adding tests, esp. for the indexers.