Add a console test for inspection of optimized out variables (bug 1004562). r=vporof

--HG--
extra : rebase_source : e86a2000d30e58b3ec17ab64bfcd0ac7fed29e5b