Add Ruby-like 'valuesAt' method for objects