Add check for erlang anon function to use 'source' instead of 'function'.

{allow_strfun, true} must be set on the server for this to work.