Add some crap such as `store`, `function`, and their `scanvars`.

It doesn't really work yet, but some progress is still nice.
Remove redundant `NOFREE` flag from high-level functions.