compiler: Fix compiling map keys in patterns from core