Added some generic number functions to core::num

Also fixes previous commit not compiling due to not finding Option.