[graph-tool] gt.scalar_assortativity returns wrong values