use `simultaneous=True` to delay evaluation in is_constant
Merge pull request #3 from smichr/const

use `simultaneous=True` to delay evaluation in is_constant
minor edits to is_constant
use subs not xreplace during simultaneous replacement