Fix misunderstanding in handling of binary types