Allow aliasing of view parameter names.

cbugg: closes bug-438
Fix encoding of view results.

cbugg: close bug-440