Corrected static assertion for select structure.
Added function for power of two test.

Will be moved to util, if test is used in other places.