Fixed bug with Command-wrapped function calling

Previously if a function returned a value, it would be smothered
by the Command class. Also added several todo items in the test
suite for making sure this works properly.