added cast to unicode for function options. 

calling 
`%doctest some_func`
without any options resulted in TypeError for me, as no options seems to be represented by the int 0 which cant be evaluated by `eval()`