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

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