Fix unsigned long isqrt for places where unsigned long != UV