Add 'nth' tpl support

Keeping usage consistent with getResources