Add specs and documentation for #dispatch leak fix