Call $reference->getSnaks() separately in ReferenceSerializer

Change-Id: Iad2d64e663a21569d984cf8b9d79005b2f4fc801
Merge "Call $reference->getSnaks() separately in ReferenceSerializer" into wmf/1.25wmf1