Add explicit checking of literal values

We need to do this as the erlang compiler can only handle data types
which have an erlang literal syntax. Also took the chance to improve
the indentation.

This fixes #90.