Compiler: Fix issue with mixing automap and splice. Thanks to Chris Angelico <rosuav@gmail.com> for the report. Fixes [LysLysKOM 23258037].