Remove redundant assignments with nested ifs (closes #842)
Remove redundant assignments with nested ifs (closes #842)

timmartin/hy,Tritlo/hy,kartikm/hy,jakirkham/hy,freezas/hy,paultag/hy,gilch/hy,tuturto/hy,adamfeuer/hy