Dynamically create selector (find) functions for reference fields.
Default writable to true for properties with definition but without 'writable' explicitly set.
Updated test.