various bug fixes and tests involving constants. test/const1.go is the major new test case. R=ken OCL=26216 CL=26224