Upgrade nopt to 2.1.2. Closes gh-1005.