Tools should use underscore framework

Remove the duplicated isDate, isArray, etc. methods.