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.
What should we do here? Exporting `type` as number doesn't look good. Can we have common function which takes the `type` and returns a string?