Allow deserialisation to infer root node.

Also update nuget package.