fix dynamically assigned properties to object
rename wl_get_related_entities to wl_get_referenced_entities