Fix fep finding logic
Update comment
Update condition
Add test case
Update test case
Add test case for replication on parameter
Merge pull request #1828 from ke-yu/fix_staticmember

Fix function redefintion error if a member function is overloaded in some cases