Be more careful when serializing feature collections to JSON.

(This is a hack. Since FCs serialize to CBOR, we should also be able
to serialize to JSON.)