Tolerate string ids. Fixes #382