Fixed JSON::Number output precision, and added a test.

Review: https://reviews.apache.org/r/12951
Fixed process::collect to preserve ordering of results.

Review: https://reviews.apache.org/r/12952