Clone entities on delete to preserve ids
Prevent division by zero error
Use identifiers for bulk delete rather than cloning objects
Merge pull request #515 from nurikabe/master

Clone entities on delete to preserve ids