Added Boolean wrapper for specialized functions, extra debug guards and a benchmark for random integer number generation