Add more utils

As a result of safer interface few bugs are fixed and the ground is prepared for type-safe console output in *druntime* without calling any *C* *I/O* routines.