WPI: make trimesh implementation for sgrid-based tops_iterator traits
WPI: make trimesh implementation for sgrid-based tops_iterator traits

Also refactor code, extract bufpool-related implementation to separate
struct, that can be parameterized with any noncached tops_iterator
trait.

bs-eagle/bs-eagle,bs-eagle/bs-eagle,bs-eagle/bs-eagle