fix bugs in stringmetrics, fix boolarr->int32