Normalized handling of term values between string terms facets and terms stats facets - this gives term stats facets the script, exclude and regex features. Closes #3004 and #2109.