Improve error message when trying to format a data type that cannot be formatted. Fixes #9.