Support lazy referencing

this PR would make the snowcrash able to recognize references which has been defined after the location of the usage. closes issue #84. this PR is not yet ready to merge.
Maybe there was some misunderstanding, but we are trying to export the `type` of the reference. Which would be of type `ReferenceType`. I don't understand what the above 3 lines are.