Test showing bad instance picking
Use actual column TInstance instead of the TClass default
merge nathanlws: Fix TopLevelCaster for types with arguments

Merge pull request #1233 from nathanlws/sql-layer/fix-top-level-caster
https://github.com/FoundationDB/sql-layer/pull/1233