fix/misc-artiq-fixes
master
Primitive types only contain fields in its Type and not its TopLevelDef. This causes primitive object types to lack some fields.