moving the length multiplication for 64 bit types from util_endianswap into util_swap64; renaming length parameter to count