Properly handle constants of typedef'ed types. Also throw an error in the compiler if we cannot generate a constant for a declared const because of its type. Added a test of this functionality in ConstantsDemo.thrift.