Fix layered opacity

* Removes the now-unused can_stack_vpart_flag function, since stacking is determined by location, not by part flags.
* Fixes transparent parts installed above opaque parts causing the opaque parts to be ignored (#3525)