Add additional checks for main methods
Add additional checks for main methods

Fixes bug 708391.

spidermonkdust/vala,GNOME/vala,rvu95/vala,rvu95/vala,frida/vala,frida/vala,GNOME/vala,spidermonkdust/vala,frida/vala,GNOME/vala,frida/vala,GNOME/vala,rvu95/vala,frida/vala,spidermonkdust/vala