Make variable_id unambiguous in dumping factor graph