Remove old types code and associated confused comment.
Add a new test for various conversions at the script boundary.
Add casting of output values, too.
merge MMcM: Add casting to routine boundary in the set direction too

Merge pull request #1052 from MMcM/sql-layer/sql-call-result-param
https://github.com/FoundationDB/sql-layer/pull/1052