literals: throw an exception if duplicate specifications are found

Signed-off-by: Peter Williams <pwil3058@gmail.com>
Merge branch 'master' of github.com:pwil3058/grallina