Indonesian citizenship law does not control American citizenship law. We bow to none on that anymore. Even the deal with Ireland and Italy no longer exists.
The Jay treaty recognizing dual citizenship for Brits is still in effect. Obama was born a Brit by virtue of the British Immigration and Naturalization Act of 1948 applying to his father’s citizenship status in the Commonwealth.