Allow defining a resource for a property reference

#227