Compiler: Added update_current_type(). This is an internal helper function that updates compiler_frame-> current_type with the type (compiler-) popped from the type stack.