- reduces the number of cast functions which are generated - adjust package_function_cast to preserve cast converage - fix issue where cast functions would be generated before localparam substitution within a procedure