More lenient type parsing in histo/cardinality aggs

closes #6893
To coerce, should be:

    parser.longValue(true);