schema/types/hash: Restore NewHashSHA256()

Changing the default from sha256 to sha512 doesn't require that we
remove support for sha256, nor should we break existing programs
which currently call NewHashSHA256() directly.