allow to restrict types in resource_references via base Resource class