The use of the array-form fluid.set(instance, ["options", "rules", flattenedPrefKey], internalModelName) will be safer and more efficient