gom: Add debug when a type couldn't be mapped
gom: Add automatic migration support for flags/enum