Adding support for basic types bool and unit.

Found this via writing tests.