gallium: extend resource_get_param to be as capable as resource_get_handle