add custom rulesets to the JME scope
add custom rulesets to the JME scope

This makes sure that the scope used to render LaTeX/content area
previews includes custom rulesets defined in the question.

fixes #347

numbas/editor,numbas/editor,numbas/editor