Resolve false variables in templates

This gem needs a better integration tests. I'll try to do that later.