Support class variables in defined? (fixes #217)