Add right parens, place cursor on left when inserting or completing functions

https://code.google.com/p/speedcrunch/issues/detail?id=494