fix(tooltip): performance and scope fixes

Includes the fix in #1454 as the tests in bd395ac depend on it. I opened #1454 for discussion due to its breaking changes but this commit here doesn't incur any breaking changes.

Fixes #1191
Attempts to fix #1450