Finish serialization (pre-compile)