Some fixes in the GRASS backend

Handling of input/output type encoding improved.
Cleaned up and improved demo requests...

and test client.