Verify lookup.longest on META structures

This ensures that the max_str() methods can return correctly.
Move populate() method implementation

This makes every component (Branch, Capture, and Node) responsible for
its own population algorithm.