Add unsafe_*_of_ptr functions

Add functions to import pointer from C-heap as discussed in issue #11.