util: Move bitwise_copy() here, add new bitwise functions, add a test.