boost memory leak fix
fixed memory leak in bind
Clear __dict__ to break some cycles.