add assert in Compiler::initLocal and fix ensuing problems
remove redundant Compiler::initLocal footprint parameter