fix Class method completion

Example:
Math.ma<tab>

Before: no completion
After: Math.max(