fixed ticket #660 and tested case for that
fixed regression in deserialization of string values