Initialise the proper 'uptr'

Palette and tile optimisation code had the subtle flaw that they initialised
the ->uptr instead of the ->opt->uptr.