Moved UIScaler creation back in the initialization order.

Now it is where it used to be, so you can create stuff in the
initStates event. - This commit got wiped out by an improper merge.