add rec_type support in import_records()

trivial part of #39
no tests
not even manually tested yet