Refactor #5096: Improve performance of cc.rectIntersectsRect