This has been resolved. The code’s been committed to the trunk and a new tag (0.13) has been created. As the plug-in description page states, use the Amazon Affiliate Link Localizer plug-in to add affiliate IDs to item URLs. It does a very good job at it.