defer resolving the annotated object.

by resolving this in the exporter, we can avoid a race condtion where
sometimes relatedModule had not been indicated when it should have been.
add raw property to hold unparsed metadata