Fixed issue where engine was failing to regenerate bytecode of parent templates