Add internalize and reflection pass