afc::isPow2() now works for signed integer values; unit tests are added for it.