Add pointer checks where missing.
Shield memory allocation calls.

try_alloc() will try to allocate memory, and upon failure, try again a
finite amount (MIK_MEMTRY) of times. If failure persists, it will print
out an error if the library is compiled in debug mode.
Add a todo file.