proposed fix for issue #139


I had to add separate handling of lookupHandle() when you want the return to be an lvalue vs rvalue.  Anyway, this is the general idea.