fix bugs in memorize_kwargs_toargs
add unit test for kwargs memorize
Merge pull request #45 from graycarl/bugfix

fix bugs in memorize_kwargs_toargs