Fix ASI rules for directives. Fixes gh-1906

WIP: I'm not sure of all the productions which should throw errors, but a few are covered.