Do not use log2 to get integer bitlength when argument is2
Add type coercion from Bis to Integer