Two-Dimensional Transition in Superconducting Films and Junction Arrays