Improves function == check
Merge pull request #35 from blazetopher/more_func_eq

Improves function == check