Attr defs should respond to str and sym keys