make sure that error indicator is displayed when message changes
keep only single primitive values when switching type