pbutil: add getbool to pbutil
Merge pull request #2017 from xiang90/pbutil

pbutil: move getbool to pbutil