fix variable name
handle arrays with paths in properties
fix reference to class
fix the links lookup
forgot to set link in resource token