Gauge Theories for Target Spaces with Degenerate Metrics