Incorporate bearophile's suggestions.
Add more pure/nothrow where applicable.
Fix 2.063 compile errors.