Stashing the output of a complete dump of parseable documentation in a saved variable produces a few bogus results, all cases where a table is populated with something like

x = y

where x is a member name which is also a lua keyword, such as "function", "end", or "nil". Changing nil to ["nil"] fixes it, of course.