Reset extension before calling parse().
Disable option checks.
Add test case for #60.
Merge pull request #62 from ldx/issue60_pr

Fix #60.