I've located the source of the bugs where by stacks starts off as inverted, and with the Use Ability Icon toggling itself off. It was a stupid late night mistake that I didn't notice.
Basically, take a look at these bitfields:
Lua Code:
--- Flags for inverted linked displays.
Metadata.DISPLAY_INVMASK = 0x00000070;
Metadata.DISPLAY_INV_AUTO = 0x00000010;
Metadata.DISPLAY_INV_MAIN = 0x00000020;
Metadata.DISPLAY_INV_SUPPORT = 0x00000040;
-- More source flags. These ones are for determining what optional services
-- are enabled.
Metadata.DISPLAY_OPTMASK = 0x000000F0;
Metadata.DISPLAY_OPT_STACKS = 0x00000010;
Metadata.DISPLAY_OPT_TEXT = 0x00000020;
Metadata.DISPLAY_OPT_TEXTURE = 0x00000040;
Metadata.DISPLAY_OPT_TIMER = 0x00000080;
Now guess what problems that causes