Fix copying entities.
Merge branch 'solarus-1.0.0' of github.com:christopho/solarus into solarus-1.0.0