Use weakref for config.on_change. Fixes #156.