Handling Local and Global Ambiguities via a Generalized Graph SLAM Framework based on Multimodal and Hyperedge Constraints