Nit: we have `isString` and `isFunction` in `sdk/lang/type` https://github.com/mozilla/addon-sdk/tree/master/lib/sdk/lang/type.js