fix datafiler for main relation types
typo
fix type name
custom dataform more simple using __toString on fields