fixed the include function when used in an assignment (closes #1095)