Inlcude recordtype in extern

and use it in data/datasets.py

xref #292