Fix nested resource support in 'fields' option