Elaboration and code generation for package signals