UIHooks: Do it like the pros

I’ve noticed that MDG’s actual implementation of insert for UIHooks differs from their guides. This causes inconsistencies in how autoscrolling height measurements work.

Detailed in this Gist: