The most likely reason I think it has 2GB, other than the rumors from reliable sources before the reveal, is actually related to the game tech demo they did on the iPhone. When they were gleefully listed the new effects they could add, the first one they mentioned was "high resolution textures." In the gaming world, high resolution textures are resources-speak for RAM intensive. If they're able to do higher resolution textures than they were before, it's likely because they have a bigger pool of RAM to play with.
That's a really good point.
I had latched onto 3D Touch evidence for 2GB, given that this feature was designed to provide speedy navigation, and the preview (peek) windows being opened are essentially a new form of multitasking with little user tolerance for lag. I figured they needed more headroom to make that work well. But certainly, high res game textures is a stronger pointer to more RAM.