Allow a grammar to contain multiple import statements (fixes #322)