changed a way to check if .expr is function

changed a way to check if expr is function in such a way that .expr
will not be evaluated.

hadley/plyr#158