Cut over StringScriptDataComparator to use BytesRef instead of Strings

Closes #2920
Fall back to local statistics if global statistics are not availalbe for a field or term

Closes #2926