Add a test demonstrating the problem.
Add an assertion against parameters not having their type determined.
Add type from explicit cast into the parameters sync.
Now get expected result.
Add an assertion against unknown parameters getting in.
Pick up any parameters to EXPLAIN or PREPARE when called from PSQL.
Add a test for the problem of parameters with no obvious type.
It's too late to handle those at assembly time. Move up with other parameter type finalization.
LIMIT ? needs to set type to INT.
Don't try to make expressions of result columns we don't need.
Add a test to check random param indexes.
Set a default type back into preptime value for constant folder.
Skip over missing parameters (only higher ones given by number).
merge MMcM: Fix a number of problems with parameter types

Merge pull request #1189 from MMcM/sql-layer/sql-param-types
https://github.com/FoundationDB/sql-layer/pull/1189