Refactor LabelValuePair into a class

typedefs compile into Dynamics on cpp