Made the error messages thrown by deserializer more informative.