fix Issue 10064 - opDollar called on garbage
fix Issue 10597 - opDollar not callable in static context