added kgi_get_param_keys method and a return to arraylist_copy