Added ability to create by reference types and load/store values from/to references.
Added support for detecting referenced variables during analysis phase.
Added support for getting a function type.
Added support for by name parameters.
Fixed detection of passing modes for global functions.