fix(tooltip): better scope handling (fixes #16)