More lenient type parsing in histo/cardinality aggs

closes #6893
same here:

     parser.longValue(true);