Many test improvements, some bug fixes

Break all text-based testing into it’s own suite
Fix a problem with handling fixed-size, pass-by-reference types
Add typmod support to cast_in
Test reorg and cleanup
Test reorg and cleanup