Statistical sums of strings on hyperelliptic surfaces