Fixed wildly incorrect result from log2 function in 32-bit builds. (& added test to prove it)
Doubly linked list predicate functions should return a boolean like the other predicate functions.