index: fixes the bug that error options.strictRequire passed to parser.parse; fixes #12
parser: improves error hint; #12
adds test cases; #12