fix source comparison problems for functions in package environments and display of langauge objects