Fix #1687: [EditorTemplates] Support htmlAttributes as IDictionary<string, object> for dynamic scenarios