Improve completer function to be aware of functions inside the object type of the top element of the stack.