Get rid of unscoped variables in dhcp::server, fix template