Fix crash concatenating global constant array. Issue #10
Fix regression of const2 test
Fix another bug with global constants