Added methods to collections.

At Tim’s request, added remove .* and indexOf .* to list objects.
Also added tests for these methods, and moved the tests into the
tests directory.