constants and typedefs

this is a workaround for #13 by not parsing map constant but copying the definition directly, which works for simple map constants. #19 is also fixed