Allow defining a resource a property reference

#227
Nice!