dep11: Fix some severe issues in the MetaInfo reading code

This also squashes some minor additional bugs.