Add support for declaring type of records.