Implemented an instance of Enum for Bit.

Unfortunately, arithmetic sequences don't work.
Add support for more kinds of literals in the plugin.
Add support for cabal version 1.18.

Which requires we unregister the old version of a package before installing a
new version of it.

Also added some thing missing in the smten library.