Separate types from main definition.
Complete all int types for configs.
Extract source files from Izanagi.