Added meaningful read-error messages when type is invalid. Fix from pederb.
Added meaningful read-error messages when type is invalid. Fix
from pederb.

Alexpux/Coin3D,Alexpux/Coin3D,Alexpux/Coin3D,Alexpux/Coin3D