basis.entity: fix using named types in field definition with later declaration