Added support for trunc instruction that translates it into a simple assignment.
Fixed a minor bug: create global constants even for functions that are just declarations.