Fixed bug in nary-operator flattening
Added tiny rgba optimization