Added mutable type tag, changed the external type declaration and fixed
various bugs.

Continued also the base lib and columns.