Started implementation of the record type.

THus making its corresponding tests pass (TestRecordType).

A good refactoring is needed but I have to commit now so that I can work from another computer later.