system: PatchEnvironment: implement Buffer replacement

When assigning a Buffer to an environment variable, if the previous value
was also a Buffer free it.
prototype: sound: add Granular Sample Stretch / Travel