Generalize bit array copy function, also explicitely clear bits (don't assume zeroed-out destination).