Fix bugs in WrappingVariablesMap introduced when adding targetRemovedKeys field

OK, I think I got it all now: please review before merging to make sure that I covered everything. The code does become quite a bit more complex now than when deletions on the target map were simply not supported, but I think this should work well enough for the ways this is used by Thymeleaf.