Merge pull request #3498 from lindahua/promoteshape2

specialize promote_shape for (Int, Int) and (Int, Int)