Issue #233: Fix "resource" for reference fields.