avoid repeated grammar creation
Merge pull request #94 from rns/speedup_sl_json.t

avoid repeated grammar creation