Handle dotted/multiple/mixed filetypes

Fixes https://github.com/tpope/vim-ragtag/pull/31
Fixes https://github.com/tpope/vim-ragtag/pull/24
Merge pull request #36 from blueyed/handle-filetype-lists

Handle dotted/multiple/mixed filetypes