[[ Bug 13056 ]] Return IO_ERROR if we don't read a valid type when reading value ref
Merge pull request #986 from runrevali/bugfix-13056

[[ Bug 13056 ]] Return IO_ERROR if we don't read a valid type when readi...