Move importStatementGroupIndex off of ImportStatements
Move importStatementGroupIndex off of ImportStatements

This makes this function truly private and moves the implementation
towards a more functional approach.

trotzig/import-js,trotzig/import-js,trotzig/import-js,Galooshi/import-js