fixed a number of lurking NullPointerExceptions, possible when modules
have unfixed parse errors and somebody on the console is trying to
retrieve functions from them because they are imported.

added "unscaled" library function to be able to get to the integer
behind a real. together with scale and precision this allows one to make
your own real formatting function.