Add generic slice hash. Maybe a bad idea, but we'll see.