is.substitution function

Checks if argument is a substitution object