Terms aggs: only use ordinals on low-cardinality fields by default.

Close #5303