python: Add missing padding to changed struct packing for strings
php: Fix dispatch of pending enumerate callback when dispatchCallbacks(-1) is used