Prepare Record class for using in MultiFields.

- add has_obligatory_type_key method
- add optional parameter declare_type_key method