added to_data function to prototype.int
added set function to Int base class in prototype module

also fixed a typo
fixed typo in session module
fixed typo in abi.call module
compile test binaries with debugging symbols
added new mockup test to function_test.py

also added some helpful debug output to function_test.c
finished testing function mockup feature