Add `type` library.
Use `type` library in `utils`.
Merge branch 'lib/type'

Add `type` library.