Add parameter type sensitivity to type encoding

This requires recording the response to parsing to know what types are
expected for parameters, and then passing that information to the type
encoder.

Signed-off-by: Daniel Farina <daniel@heroku.com>