make ty_region give a useful span when it fails

r? @catamorphism