Core functional representation

Resolves #710 when merged, but not even nearly ready yet.

Not sure there is much to talk about yet, I was hoping to get a bit further with it, so everything is subject to change still.
What data *can't* be compiled to a record? e.g. with field names `_1`, `_2`, `_3`, etc.