pass argument by const-ref in frexp
fix compilation of am scalar test with MSVC + remove unreachable code