How to keep the dot above “i” or “j” when using combining marks?

There’s a solution we discussed here last year: