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.
According to the TODO at the beginning of this function, we need to modify the c-interface to represent the new `Reference` structure. Which means, we need to introduce new functions like `sc_payload_reference` and `sc_reference_id` etc..