Support for Function terms()

USAGE:

replace.(form, data) 

This is support for the function terms(). It is not intended to be called directly by users.