Added license headers.
Fixed constnes in compiled message.
Added struct to translate from native types to base type ids.