fix override member var completion

add test so it doesn't break again in future
fix use building for strings

class names aren't case sensitive so we need to lowercase before searching