clz function should throw exception on non-Number values