Added a type check for Constant.Map