When an mpy file is frozen it must know the values of certain configuration variables. This patch provides an explicit check in the generated C file that the configuration variables are what they are supposed to be.
Fixes issue #2023.
Currently it can freeze .mpy files.