libstd: correct bigint's quot/rem, div/modulo

BigInt had been supported quot/rem and div/mod correctly, but after merging #5990 they have been broken.
This commit fixes it.