gapfill references contain strictly only digits

the regexp for gapfill references is now \[\[(\d+?)\]\], to avoid capturing JME subs.
fixes #249
Merge branch 'master' of github.com:numbas/Numbas