Bugfixes, simplifications and optimizations for flags propagation in display list and gfx frame tree