Better support to bool type in runtime