Changed to get the deserialisation length from the vector length.

This removes the bug where variable length types were incorrectly deserialised. Thanks to @nilsbore for reporting the bug.
Merge pull request #31 from hawesie/hydro-devel

This fixes my problem, merging!