Add CHECK-TYPE to catch misspelt model names
Preliminary lparallel support

A working proof of concept, with some informal tests.

*QUERY-FUNCTIONS* is mutable global state and not thread safe as is
but should be now...