More precise handling of the XStream errors

fixes #657 and rethrows other unrecognized XStream errors instead of claiming them to be "null to primitive assignment" error.