Some polish, and first steps towards history management
Merge branch 'refcnt' of github.com:timbunce/devel-sizeme into refcnt
chase array elements in natural (assending) order
assorted updates to TODO
get SQLite field names only when and where needed