allow names to override other values

Allow the names: definition to override the other values in that state
if it is a dictionary instead of just a string.