Fix error when using shortest configuration

TypeError: Cannot call method 'match' of undefined
Fix missing argument validation on last option
Make sure we don't have an undefined token
Pass the list of unparsed tokens to the filter

This allows for more elaborate filters.
Merge branch 'support-omitted-shortarg'
Merge branch 'allow-complex-filters'
Reset arg if it was a switch and not an argument
Merge branch 'unset-next-option'

Conflicts:
	lib/optparse.js