for-each-ref: add new option to include root refs