JSONField: (Hopefully) fix a real-life crash we've been seeing

We should probably rename JSONField to JSONDictField, because we only
support dictionaries inside.