Fixed export for linked and reference types
Fixed unit tests