Fix failing test from or expression update

The empty list is considered false and therefore won't
be chosen in an or expression.
Pull sort_by and resolve=False from functions

Needs more work and a general solution, deferred to a later
JEP.
Copy over jep-3 to specification.rst

Including some minor edits.