type stability in all norm variants (continuing #6056 and #6057)
Merge pull request #6101 from stevengj/stablenorm

fix type stability in all norm variants