Seems to work, but I'm not shure if it is save to remove entrys while iterating. Can't find any advise at this.
It's not when you're iterating the aa directly. You'll probably want something like this:
auto keys = objects.keys; foreach( i, val; objects.values ) { if( val is null ) { objects.remove( keys[ i ]); } }