Get object or class vars of a specified class from an external scope ensuring that retrieved vars are public onlyue