[qtdeclarative] Cherry-pick selected rendering related fixes from Qt 5.3