implemented value::find_object_key method

Added method for finding the index of a key in the object.