re #3482 Fixed MathGaps scoring and get/set state in TextModule