Add hierarchy_value constraint to prevent troublesome strings.