Added some detection of recursion in decode_value(). Improved error-handling in {encode,decode}_value(). Rev: src/encode.c:1.107