refs #30 fix issue with null and void
When adding method or class variable, it won't assign wrong type to them anymore