gstvalue: don't write to const char *
Our various deserializing functions require NULL terminators to not over consume substrings (eg fields of an array). Instead of writing a NULL terminator to the passed-in string, which may result in segfaults, make a copy of the substring we're interested in.
Fixes #446 (closed)