A......... [ZBX-8448] fixed the order in which host and templates update data, leaving group linkage as last