Added bool, string, number as types in ParamValidator.
Multiple bug fixes in the Format library.