Added object parameter support for set and setOrAdd.