Improve hyphen support for custom elements; add test case.