Unserialization of serialized objects when converting xml to array