refactor ErlangFunctionReferenceImpl's constructor