Added "has(key, type)" type funcion to "type.js"