hash: remove literals from exploders and imploders by dealing in parametrized endian types instead of specifically octet-oriented ones