mp_integer: add support for ignoring upper bits in the return value for read_uint().

This is a prerequisite for future performance improvements.