More lenient type parsing in histo/cardinality aggs

closes #6893