tokenEndings of the scope start as undefined instead of an empty array