Fix std.BigInt bug #9548 plus other new discovered bugs.

http://d.puremagic.com/issues/show_bug.cgi?id=9548