Add instance copying, fix instance creation (with identical names)