add assignByRef method

Assign variable by reference. Same feature in smarty.