[Hexagon] Use composition instead of inheritance from STL types