[Fix #29] Globalize Flycheck mode
Fix names of test resource buffers
Fix detection of temporary buffers

Gets ed2cc51 right.