Change ComponentFilter to require clone() method and use SimTK::ClonePtr to maintain/cache the filter. Also update testIterators to demonstrate the updated interface and cleanup SWIG annotation in headers.
Use const ref instead of pointer inside the iterator to minimize handling of naked pointers.