added support for object instances as the second argument of the constant test (closes #1100)