fixed uint_roundpow2 when n is 0
added first and next
added tests for list