Also record field type
Some small exceptions to ignore in transformer
Ignore target directories
Remove useless code and add primitive type for boolean (Z)