Configure: Fixed typo causing configuration failures.
Mappings: Clean weak refs during rehash.

Perform a cheap quick and dirty gc during rehashing
of weak mappings. This should take care of the most
common cases where weak mappings are used for caches.