Give better error messages for full stops in types. Fixes #144.
Add test for #144.