tests: Add test case for all kinds of vardecls

(useful e.g. for testing the recent -g changes)
Add fbio.bi exposing the existing fb_IsRedirected() as IsRedirected()
Add test case and changelog entry for #545