Allow the use of field numbers rather than names in JSON serialization

@swankjesse @JakeWharton 
Any reason for this change? The for-each loop burns an `Iterator` allocation.