Add former type ids and location to logged changes