Change parameter type in Record::declare_type_key.