[Monocle] Emit removeTab() before deleting internals.

Fixes #1787.
[Util] Moved Stlize's implementation into detail:: namespace.