Minor changes to support js localization of some types.