Merge pull request #1096 from tmandry/patch-1

Fix assertions inside read_{u32,u64}_into