Add fallback function for boolval (issue#2)