Defined variables in CBN should include unbound variable that has input
Merge pull request #1234 from ke-yu/fix_magn2169

Defined variables in CBN should include unbound variable that has input