Fixed "add braces to ifs" func to also handle nested ifs with blocks.