Revert "Merge pull request #1 from rochers/master"

This reverts commit 825322e58e059f4ba4517b7edac3b0c6b4a9cb5d, reversing
changes made to 7c9040833a32263f5101769057fdd3467d509a0a.
remove column instances, move type_cast_code into our domain.