minor edits to is_constant
use subs not xreplace during simultaneous replacement

Since xreplace replaces symbols indiscriminately, we can't use
that without knowing that no dummy symbols in the expression are
matched by the expressions to find. So we use subs instead of
xreplace.
Merge pull request #4 from smichr/const

Const