Typed static queries

I'm opening this PR so we can discuss the current state of the implementation.
Better: if(conf.hasKey(_key)) conf.getString(_key) else null