added type 'Set' for a set of constant values
valueToString supports a type specified to prevent guessing now