fix bug in primitive workaround for https://github.com/erik-kallen/SaltarelleCompiler/issues/307