Vortex-antivortex crystallization in thin superconducting and superfluid films