Fix missing id in copied model
requested to merge github/fork/jougs/fix_missing_id_in_copied_model into fix_missing_id_in_copied_model
Created by: jougs
This is a bit of cleanup of the tests and some other areas of https://github.com/nest/nest-simulator/pull/2379. It looks bigger than it is because I also merged upstream/master again.