Refactor for minify
Modify hasType interface
Revert "Modify hasType interface"

This reverts commit 7e3d23d1900a35ed1e559d4a5c52dff3daf674f9.
Revert "Refactor for minify"

This reverts commit 4fee43b694ee69ac3d5a3a8c15a219968893d871.
Ref CLASS key
Refactor hasType
Fix trivial