fmath: Make ispow2 and round_to_multiple_of_2 info templates
so they work for size_t also.
Also add some unit tests to fmath_test.cpp, including making sure that
these templates works as expected.