Generalized toAST on creating sequence to use for restrictions areas. Generating valid SDF for restrictings, but not supported by JSGLR