Reduced SnakList.newFromJSON complexity

(bug 53397)
Reduced complexity in SnakList's newFromJSON function.

Change-Id: I2282c4b26baf8663c382571743a6dadbfa6612e1
Merge "Reduced SnakList.newFromJSON complexity"