Better error reporting

Updated support of esnext/moz options, by parsing all features anyway and report warnings on use of features without the correct options.
Fixed parsing of pure JSON when in esnext/moz modes

(based on PR #943)