Adds error message and throws exception when someone passes a bad `options.type` to `app.import`
Merge pull request #2647 from mattmarcum/app-import-options-test

App.import should throw exception when someone passes a bad type