add lazy referencing closses #84
add test for lazy referencing
c-interface fixed
serialize fixed
fix reference structure source map