We were being to strict on list length, it can be 2**24 as all index's will need to be less than that.
int_to_bytes
I also fixed an error I found through strict typing.
The implementation is not matching the EF implementation at this point.