tryGetDefault dictionary extension

Try get a value from a dictionary and return a default value when not found. I provided two version. Pick the one you like the most.