New Topological Invariants for Real- and Angle-Valued Maps