small optimizations in parser.getObj(), lexer.getObj()

This reduces the number of isCmd() checks in parser.getObj() and so reduces the time spent in this function by ~20%. In street-map-like PDFs, parser.getObj() is called millions of times.