properly convert ndarrays to binary
also check options for a seed