Functions: added type functions, eg. iscolor etc