The following line in the Manager.decref() method raises an exception (at
least when logging in enabled):
util.debug('disposing of obj with id %d', ident)
This is because the type of 'ident' is str, not int. The following patch
fixes this problem. (This seems like it may be causing problem with
execution of finalization functions in the slave processes...)