Added default value to get function.

Used to return a default value for a key that does not exist. If no default value is provided, null is returned just as it does currently.

Added tests for this functionality.