fix a NotScalarConstantError issue
Add test for when b is not constant
Merge pull request #9 from lamblin/fix_constant_test

Add test for when b is not constant
Merge pull request #1186 from goodfeli/fix_constant

fix a NotScalarConstantError issue