Thanks for the report. I agree that the current code does not work for many uses -- that's why IPv6 is still "experimental". Mauro Tortonesi is working on contributing IPv6 support that works better.
For the impending release, I think the workaround you posted makes sense. Mauro, what do you think?
