use InitializedLocalText class to avoid reinitializing replaced local text objects, move json local text functions to JsonLocalTextRegistration from NestedLocalTextRegistration class