smaz-tools: refactor scoring in To_Scored_Word