rename function boolval() to phpwcms_boolval() to avoid conflict with PHP 5.5

See commented block line 65-71 in case you get an error