Fix missing consts on ComplexPattern functions