Fix FieldGroup and TransactionalPropertyWrapper memory leaks (#13438)

Change-Id: Ifafb6d87b4280f8bd9e631235fff62f42de4b4c8