Add Record::declare_type_key method.

- method for declaration of TYPE key (first key of Record)
- use method in AbstractRecord constructor