improve binding of 'scroll' and 'resize' handlers

ensure that 'scroll' and 'resize' handlers are in all cases bound at most once, and that they are always unbound when Tip is removed

fixes #38
fixes #25